<script setup lang="ts">

import PictureUpload from '@/components/PictureUpload.vue'
import { ref } from 'vue'

const picture = ref<API.PictureVO>
const onSuccess = (newPicture: API.PictureVO) => {
  picture.value = newPicture
  console.log(newPicture.url)
  console.log(picture.value)
}
</script>

<template>
  <PictureUpload :picture="picture" :on-success="onSuccess"/>
</template>

<style scoped>

</style>
